package pack0618;
//求1~100的和，当和大于1000，循环结束
public class DemoH {
    public static void main(String[] args) {
        int a =0;
        for (int i=0;i<=100;i++){
            a+=i;
            if (a%2==0) {

                System.out.println(a+i);
                break;
            }
        }
    }
}